package com.yuma.springshiroredisthymeleaf.service.impl;

import com.yuma.springshiroredisthymeleaf.dao.PermissionDao;
import com.yuma.springshiroredisthymeleaf.entity.Permission;
import com.yuma.springshiroredisthymeleaf.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    PermissionDao permissionDao;

    @Override
    public List<Permission> getByRoleId(Integer roleId) {
        return permissionDao.selectByRoleId(roleId);
    }
}